import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Parent from '@/components/parent'
import Test from '@/components/test'
import Vuex from '@/components/vuex'
import Codemirror from '@/components/codemirror'
import XiaoMa from '@/components/XiaoMa'
import User from '@/components/User'
import Mu from '@/components/mu'
import Set from '@/components/set'
import Orgchart from '@/components/orgchart'
import Father from '@/components/Father'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'HelloWorld',
            component: HelloWorld
        },
        {
            path: '/parent',
            name: 'Parent',
            component: Parent
        },
        {
            path: '/test',
            name: 'test',
            component: Test
        },
        {
            path: '/vuex',
            name: 'vuex',
            component: Vuex

        },
        {
            path: '/codemirror',
            name: 'codemirror',
            component: Codemirror

        },{
            path:'/ma',
            name:'XiaoMa',
            component: XiaoMa

        },{
            path:'/user/:username',
            name:'user',
            component: User

        },{
            path:'/orgchart',
            name:'orgchart',
            component:Orgchart
        },{
            path:'/mu',
            name:'Mu',
            component: Mu
        },
        {
            path:'/set',
            name:'Set',
            component: Set
        },{
            path:'/father',
            name:'father',
            component: Father
        }
    ]
})